public class Test  {
    public static void main(String[] args) {

        Mystack2 <Integer>mystack2=new Mystack2();
        MyStack myStack=new MyStack();
        System.out.println(myStack.isValid("(())}"));
        mystack2.push(10);
        mystack2.push(20);
        mystack2.push(30);
        System.out.println(mystack2.pop());
        System.out.println(mystack2.peek());
    }
    public static void main1(String[] args) {
        MyStack myStack=new MyStack();
        myStack.push(1);
        myStack.push(2);
        myStack.push(3);
        System.out.println(myStack.pop());
        System.out.println(myStack.peek());
        System.out.println(myStack.peek());
    }
}
